using System;
using System.Collections.Generic;

namespace Toon.Models.Catalogs
{
    public class TableItem<T>
    {
        readonly int m_Frequency;
        readonly T m_Item;

        public TableItem(T item, int frequency = 1)
        {

            m_Frequency = frequency;
            m_Item = item;
        }

        public int Frequency
        {
            get { return m_Frequency; }
        }

        public T Item
        {
            get { return m_Item; }
        }

        public string Name
        {
            get { return m_Item.ToString(); }
        }
    }
}
